<!DOCTYPE html>
<title>Test that video frame replaces poster on seeking.</title>
<script>
function doSetup() {
    var video = document.querySelector("video");
    function seekVideo() {
        video.removeEventListener("canplaythrough", seekVideo);
        video.currentTime = 1;  // so the snapshot always has the same frame.
    }
    video.addEventListener("canplaythrough", seekVideo);
    video.addEventListener("seeked", function() {
        testRunner.notifyDone();
    });
    video.src = "content/test.ogv";
    testRunner.waitUntilDone();
}
window.addEventListener("load", doSetup, false);
</script>
<body>
    <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34966">https://bugs.webkit.org/show_bug.cgi?id=34966</a>. <br>
    You should see the video below.</p>

    <video width="480" height="270" poster="content/abe.png"></video>
</body>